<!DOCTYPE HTML>
<html lang="zh">
<meta charset="utf-8">
<head>
	<title>数据统计</title>
    <link href="/aityWeb/static/css/font-awesome.css" rel="stylesheet"/>

    <style type="text/css">
        .nav > li:hover .dropdown-menu {display: block;}
    </style>

	<link href="/aityWeb/static/css/bootstrap.min.css" rel="stylesheet"/>
	<link href="/aityWeb/static/css/font-awesome.css" rel="stylesheet"/>
	<!-- bootstrap-table 表格插件样式 -->
	<link href="/aityWeb/static/ajax/libs/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
	<link href="/aityWeb/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.css" rel="stylesheet"/>
	<link href="/aityWeb/static/css/animate.css" rel="stylesheet"/>
	<link href="/aityWeb/static/css/style.css" rel="stylesheet"/>
	<link href="/aityWeb/static/css/checkbox.css" rel="stylesheet"/>
	<link href="/aityWeb/static/ajax/libs/select/select2.css" rel="stylesheet"/>
    <link href="/aityWeb/static/galaxy/css/ry-ui.css" rel="stylesheet"/>
    
    
</head>
<body class="gray-bg">
<div class="container-div">
	<div class="row">
		<div class="col-sm-12 select-info" style="padding-top: 10px;">
			<ul class="breadcrumb" style="font-size: 16px;background-color: #f5f5f5;padding: 5px 10px;color: #337ab7;">
			    <li><i class="fa fa-home" aria-hidden="true"></i>&nbsp;&nbsp;<a href="#">首页</a></li>
			    <li class="active"><a href="#">场馆管理</a></li>
			</ul>
			<div class="col-sm-12 " style="padding-top: 10px;padding-left:0px; height: 100%">
				<form id="menu-form" class="form-horizontal" role="form">
				    <div class="col-sm-2">
				      <input type="text" class="form-control" id="firstname" placeholder="请输入开始时间">
				    </div> 
				    <div class="col-sm-2">
				     	<input type="text" class="form-control" id="firstname" placeholder="请输入结束时间">
				    </div>
				     <div class="col-sm-1">
				     	<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
				    </div>
					<!-- <div class="select-list">
						<ul>
							<li>
								<input type="text" name="devName" placeholder="请输入场馆名称/负责人姓名" />
							</li>
							<li>
								<input type="text" name="devName" placeholder="开始时间"/>
							</li>
							<li>
								<input type="text" name="devName" placeholder="结束时间"/>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							</li>
						</ul>
					</div> -->
				</form>
			</div>
	
			<div class="btn-group hidden-xs" id="toolbar" role="group">

                <button type="button" class="btn btn-primary" style="margin-left: 10px;">
                    <span class="glyphicon glyphicon-download"></span>
                    导出excel
                </button>
				
			</div>
			<table id="bootstrap-table" data-mobile-responsive="true"></table>
		</div>
	</div>
</div>

<script src="/aityWeb/static/js/jquery.min.js"></script>
	<script src="/aityWeb/static/js/bootstrap.min.js"></script>
	<script src="/aityWeb/static/js/echarts.common.min.js"></script>
	
	<!-- bootstrap-table 表格插件 -->
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
	<!-- jquery-validate 表单验证插件 -->
	<script src="/aityWeb/static/ajax/libs/validate/jquery.validate.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/validate/messages_zh.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/validate/jquery.validate.extend.js"></script>
	<!-- jquery-validate 表单树插件 -->
	<script src="/aityWeb/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js"></script>
	<!-- jquery-export 表格导出插件 -->
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
	<script src="/aityWeb/static/ajax/libs/bootstrap-table/extensions/export/tableExport.js"></script>
	<!-- 遮罩层 -->
	<script src="/aityWeb/static/ajax/libs/blockUI/jquery.blockUI.js"></script>
	<script src="/aityWeb/static/ajax/libs/layer/layer.min.js"></script>
	<script src="/aityWeb/static/ajax/libs/layui/layui.js"></script>
	<script src="/aityWeb/static/galaxy/js/common.js?v=2.3.0"></script>
	<script src="/aityWeb/static/galaxy/js/ry-ui.js?v=2.3.0"></script>
<script type="text/javascript">
    var prefix = '';

    $(function() {   

        var options = {
            url: "/aityWeb/static/json/dataStatistics/info.json",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            search: false,
            modalName: "数据统计",
				columns: [{
					checkbox: true
				},
                {
                    field : 'id',
                    title : 'ID'
                },
                {
                    field : 'sTime',
                    title : '售卖时间'
                },
                {
                    field : 'voucherName',
                    title : '券名称'
                },
                {
                    field : 'userInfo',
                    title : '用户信息'
                },
                {
                    field : 'je',
                    title : '金额'
                },
                {
                	field : 'byje',
                    title : '备用金金额'
                },
                {
                	field : 'bysyje',
                    title : '备用金使用金额'
                }
                // {
                //     title: '操作',
                //     align: 'center',
                //     formatter: function(value, row, index) {
                //         var actions = [];
                //         actions.push('<a href="#" onclick="edit()"><i class="fa fa-edit"></i>编辑</a> ');
                //         actions.push('<a href="#" onclick="info()"><i class="fa fa-remove"></i>查看</a>');
                //         return actions.join('');
                //     }
                // }
                ]
        };
        $.table.init(options);
    });

    function edit(){
        $.loadInner.updateUrl("/aityWeb/view/clubManger/edit.html");
    }

    function  info() {
         $.loadInner.updateUrl("/aityWeb/view/clubManger/info.html");
    }

</script>
</body>
</html>

